<?php
$userid = islogin();
$sn  = empty($_REQUEST['sn']) ? 0 : trim($_REQUEST['sn']);
if(empty($sn)){
	exit('参数丢失');
}
$vars['trade_status'] = empty($_REQUEST['trade_status']) ? '' : trim($_REQUEST['trade_status']);

$oOrder = new Order();
$__orderinfo = $oOrder->get_order_by_sn($sn, '*');
if(empty($__orderinfo)){
	sysinfo('订单不存在', "./index.php?frm=user&mdl=order&do=list", 5000);
}
$__orderinfo['paytime'] = date('Y-m-d H:i:s', $__orderinfo['payment_time']);
$vars['orderinfo'] = $__orderinfo;
// 支付方式详细信息
$payments = cache_read('payments.php');
$vars['paymentinfo'] = $payments[$__orderinfo['payment']];

/*******************************************************************************
 * 页面信息　& 当前位置
 *******************************************************************************/
url_here('支付结果', "./index.php?frm=pay&mdl=pay&do=result&sn={$sn}");
?>